package com.dokimall.common.exception;

/**
 * @ClassName: NostockExcption
 * @Description:
 * @Author
 * @Date 2021/10/28
 * @Version 1.0
 */

public class NostockExcption extends RuntimeException{
    private Long skuId;
    private String msg;
    public NostockExcption(Long skuId){
        super("商品ID："+skuId+"没有足够的库存了");
    }
    public NostockExcption(String msg){
        super(msg);
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
